package com.smartcommunity.entity.people.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

@Data
@ApiModel(value = "更新人员实体")
public class UpdatePeopleDto implements Serializable {

    private static final long serialVersionUID = -1L;

    /**
     * 人员id
     */
    @NotBlank(message = "人员id")
    @ApiModelProperty(value="人员id",name="peopleId",example = "人员id")
    private String peopleId;

    /**
     * 姓名
     */
    @NotBlank(message = "姓名不能为空！")
    @ApiModelProperty(value="姓名",name="peopleName",example = "张三")
    private String peopleName;

    /**
     * 证件号码
     */
    @NotBlank(message = "证件号码不能为空！")
    @ApiModelProperty(value="证件号码",name="credentialNo",example = "420624199909093332")
    private String credentialNo;

    /**
     * 证件类型
     */
    @NotBlank(message = "证件类型不能为空！")
    @ApiModelProperty(value="证件类型，居民身份证111，军官证 114，警官证123，普通护照414 ",name="credentialType",example = "111")
    private String credentialType;
    //residentiaType


    @ApiModelProperty(value="居住类型，实有人口1  访客人员2  曾住人员3， 其他人员 4 ",name="residentiaType",example = "1")
    private Integer residentiaType;


    /**
     * 性别
     */
//    @NotBlank(message = "性别不能为空！")
    @ApiModelProperty(value="性别",name="gender",example = "男")
    private String gender;
    @ApiModelProperty(value="性别编码",name="genderCode",example = "1")
    private String genderCode;

    /**
     * 出生日期
     */
//    @NotBlank(message = "出生日期不能为空！")
    @ApiModelProperty(value="出生日期",name="birthDate",example = "1999-09-09")
    private String birthDate;

    /**
     * 民族
     */
//    @NotBlank(message = "民族不能为空！")
    @ApiModelProperty(value="民族",name="nation",example = "汉")
    private String nation;

    /**
     * 户籍类别：户籍人员、外来人员、境外人员
     */
    @NotNull(message = "人员类型不能为空！")
    @ApiModelProperty(value="户籍类别：1户籍人员、2外来人员、3境外人员",name="peopleType",example = "1")
    private Integer peopleType;

    /**
     * 标签
     */
    @ApiModelProperty(value="标签，多个标签以逗号隔开",name="label",example = "1")
    private String label;


    /**
     * 籍贯
     */
    @ApiModelProperty(value="籍贯",name="origin",example = "湖北")
    private String origin;

    /**
     * 户籍地址
     */
    @ApiModelProperty(value="户籍地址",name="domicileAddress",example = "户籍地址")
    private String domicileAddress;

    /**
     * 联系方式
     */
    @ApiModelProperty(value="联系方式",name="phoneNo",example = "15555555555")
    private String phoneNo;

    /**
     * 证件照
     */
    @ApiModelProperty(value="证件照",name="idCardPic")
    private String idCardPic;

    @NotEmpty(message = "房屋列表不能为空！")
    @ApiModelProperty(value="房屋列表",name="list")
    private List<HouseDto> houseList;

}
